import request from '@/utils/request'

// 课程分类
export function queryCategoryDatas() {
	return request.get('course/category');
}

// 课程列表
export function queryListsDatas(params = {}) {
	return request.get('course/lists',{params});
}

// 课程详情
export function queryDetailDatas(params = {}) {
	return request.get('course/detail',{params});
}

// 课程材料详情
export function queryMaterialDetailDatas(params = {}) {
	return request.get('course/course_material',{params});
}

// 课程喜欢操作
export function queryLikeOperation(params = {}) {
	return request.post('course/n_like',params);
}